ScanDocument AfterCompletion
Get or set the parking state of the scanning system once a laser scanning process has been executed. This allows control over the beam positions and the desired laser states that the system should assume after completing a marking job.
public ScanningCompletionState AfterCompletion {get;set} |
Return value
ScanningCompletionState | Parking state of the scanning system |
ScanningCompletionState supports the following settings
bool | beamHomeEnabled | Get or set whether the laser beam should return to the home position once the marking job is completed. |
bool | disableLaser | Gets or sets whether the laser is disabled at the end of the job |
bool | setLaserOn | Get or set whether to turn the laser on at the end of the job. |
Point3D | beamHomePosition | Gets or sets the beam homing position |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
ScanningCompletionState afterCompletion = new ScanningCompletionState();
afterCompletion.BeamHomeEnabled = true;
afterCompletion.BeamHomePosition = new Point3D(0, 0, 0);
afterCompletion.DisableLaser = true;
afterCompletion.SetLaserOn = false;
scanDocument.AfterCompletion = afterCompletion;
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
CircleShape circleShape = new CircleShape();
circleShape.CenterPoint.X = 0.0f;
circleShape.CenterPoint.Y = 0.0f;
circleShape.CenterPoint.Z = 0.0f;
circleShape.Clockwise = true;
circleShape.Radius = 10;
circleShape.StartAngle = 0;
circleShape.MaximumSegmentationError = 0.001f;
vectorImage.AddCircle(circleShape);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}